<?php


use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\helpers\ArrayHelper;
/* @var $this yii\web\View */
/* @var $model common\models\customInfo\CustomInfo */

$this->title = $model->info_id;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', '报名信息'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginBlock('siderbar'); ?>
<?= $this->render('//layouts/mem-menu') ?>
<?php $this->endBlock(); ?>
<style>
    img{widows: 150px;height: 150px;}
</style>
<div class="custom-info-view">
    <p>
        <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->info_id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->info_id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
                'method' => 'post',
            ],
        ]) ?>
    </p>
    <p>报名信息:</p>
    <table id="w0" class="table table-striped table-bordered detail-view">
    <tbody>
        <tr>
            <?php 
            foreach (unserialize($model->sub_info) as $key => $value) { ?>
                <th><?= $value['name']; ?></th>
                <td><?= $value['value']; ?></td>
            <?php } ?>
        </tr>
    </tbody>
    </table>
    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'info_id',
            //'token',
            //'wecha_id',
            [
                'attribute' => 'ac_id',
                'value' => $model->getactivityinfo($model->ac_id),
            ],
            'add_time',
            //'user_name',
            //'phone',
            //'work',
            //'user_id',
            [
                'attribute' => 'status',
                'value' => $model->getstatus($model->info_id),
            ],
            [
            'attribute' => 'code1',
            'format' => 'raw',
            'value' => $model->code,
            ],
            [
            'attribute' => 'code',
            'format' => 'raw',
            'value' => Html::img(Yii::$app->params['setshow'].'/erm/'.$model->code.'.png'),
            ],
            
        ],
    ]) ?>

</div>
